package com.hsgene.sample.persistence;



import com.hsgene.sample.condition.SampleCondition;
import com.hsgene.sample.domain.GeneticTestingSample;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface GeneticTestingSampleMapper  {
    int deleteByPrimaryKey(String id);

    int insertMapper(GeneticTestingSample record);

    int insertSelective(GeneticTestingSample record);

    GeneticTestingSample selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(GeneticTestingSample record);

    int updateByPrimaryKey(GeneticTestingSample record);

    int getCount(@Param("condition") SampleCondition condition);

    List<GeneticTestingSample> queryList(@Param("condition") SampleCondition condition);

    GeneticTestingSample getByLabel(@Param("label") String label,@Param("typeLabel") String typeLabel);

    GeneticTestingSample getByIdAndNoDelete(String id);

    List<GeneticTestingSample> getAll(@Param("condition") SampleCondition condition);

    void deleteMore(@Param("sampleList") List<GeneticTestingSample> sampleList);

    List<GeneticTestingSample> getByids(String[] split);
    /**
     *获取样本code（最后一条）
     * @author FX
     * @date 2018/12/13 17:06
     * @param
     * @return
     */
    String selectOrderByCode();
}